package com.example.helllo;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.ListView;
import android.widget.ProgressBar;

import java.util.ArrayList;
import java.util.HashMap;

public class ListItemActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_list_item);
        ListView listView = findViewById(R.id.mylist2);
        ArrayList<HashMap<String,String>>listItems = new ArrayList<HashMap<String,String>>();
        for(int i=0;i<10;i++){
            HashMap<String,String> map= new HashMap<String,String>();
            map.put("ItemTitle","Rate:"+i);
            map.put("ItemDetail:","detail"+i);
            listItems.add(map);
        }
    }
}